/**
 * Created by John on 2016/7/25.
 */
var mongo = new Mongo('localhost');
var db = mongo.getDB('admin');

var top = db.runCommand({top: 1});

printjson(top);